package routers

import (
	"echo-project-01/echodemo01intro/echo09middleware/controller"
	"echo-project-01/echodemo01intro/echo09middleware/middleware"
	"github.com/labstack/echo/v4"
)

func CarRouting(e *echo.Echo) {
	g := e.Group("/car")

	//使用路由中间件
	g.GET("/get", controller.GetCar, middleware.RouterMiddleware1, middleware.RouterMiddleware2)
	g.GET("/del", controller.DelCar, middleware.RouterMiddleware1, middleware.RouterMiddleware2)
}
